home *** CD-ROM | disk | FTP | other *** search
/ PC User 2004 August / Disc 2 / PCU0804CD2.iso / entertn / patches / files / unrealto.exe / UT2004-Patch / System / UTClassic.u / HitLocation_TracerProjectile_ScriptText.TextBuffer < prev    next >
Unknown  |  2004-05-10  |  1.5 KB

open in: MacOS 8.1     |     Win98     |     DOS

view JSON data     |     view as text


This file was not able to be converted.
This format is not currently supported by dexvert.

ConfidenceProgramDetectionMatch TypeSupport
100% file data default



hex view
+--------+-------------------------+-------------------------+--------+--------+
|00000000| 00 00 00 00 00 00 00 00 | 5c 17 63 6c 61 73 73 20 |........|\.class |
|00000010| 54 72 61 63 65 72 50 72 | 6f 6a 65 63 74 69 6c 65 |TracerPr|ojectile|
|00000020| 20 65 78 74 65 6e 64 73 | 20 50 72 6f 6a 65 63 74 | extends| Project|
|00000030| 69 6c 65 3b 0d 0a 0d 0a | 76 61 72 20 78 45 6d 69 |ile;....|var xEmi|
|00000040| 74 74 65 72 20 54 72 61 | 69 6c 3b 0d 0a 0d 0a 73 |tter Tra|il;....s|
|00000050| 69 6d 75 6c 61 74 65 64 | 20 66 75 6e 63 74 69 6f |imulated| functio|
|00000060| 6e 20 44 65 73 74 72 6f | 79 65 64 28 29 0d 0a 7b |n Destro|yed()..{|
|00000070| 0d 0a 20 20 20 20 69 66 | 20 28 20 54 72 61 69 6c |.. if| ( Trail|
|00000080| 20 21 3d 4e 6f 6e 65 20 | 29 0d 0a 09 09 54 72 61 | !=None |)....Tra|
|00000090| 69 6c 2e 6d 52 65 67 65 | 6e 3d 46 61 6c 73 65 3b |il.mRege|n=False;|
|000000a0| 0d 0a 09 53 75 70 65 72 | 2e 44 65 73 74 72 6f 79 |...Super|.Destroy|
|000000b0| 65 64 28 29 3b 0d 0a 7d | 0d 0a 0d 0a 73 69 6d 75 |ed();..}|....simu|
|000000c0| 6c 61 74 65 64 20 66 75 | 6e 63 74 69 6f 6e 20 50 |lated fu|nction P|
|000000d0| 6f 73 74 4e 65 74 42 65 | 67 69 6e 50 6c 61 79 28 |ostNetBe|ginPlay(|
|000000e0| 29 0d 0a 7b 0d 0a 09 6c | 6f 63 61 6c 20 50 6c 61 |)..{...l|ocal Pla|
|000000f0| 79 65 72 43 6f 6e 74 72 | 6f 6c 6c 65 72 20 50 43 |yerContr|oller PC|
|00000100| 3b 0d 0a 09 6c 6f 63 61 | 6c 20 76 65 63 74 6f 72 |;...loca|l vector|
|00000110| 20 44 69 72 2c 4c 69 6e | 65 50 6f 73 2c 4c 69 6e | Dir,Lin|ePos,Lin|
|00000120| 65 44 69 72 3b 0d 0a 09 | 0d 0a 09 69 66 20 28 20 |eDir;...|...if ( |
|00000130| 28 4c 65 76 65 6c 2e 4e | 65 74 4d 6f 64 65 20 3d |(Level.N|etMode =|
|00000140| 3d 20 4e 4d 5f 43 6c 69 | 65 6e 74 29 20 26 26 20 |= NM_Cli|ent) && |
|00000150| 28 4c 65 76 65 6c 2e 47 | 65 74 4c 6f 63 61 6c 50 |(Level.G|etLocalP|
|00000160| 6c 61 79 65 72 43 6f 6e | 74 72 6f 6c 6c 65 72 28 |layerCon|troller(|
|00000170| 29 20 3d 3d 20 4f 77 6e | 65 72 29 20 29 0d 0a 09 |) == Own|er) )...|
|00000180| 7b 0d 0a 09 09 44 65 73 | 74 72 6f 79 28 29 3b 0d |{....Des|troy();.|
|00000190| 0a 09 09 72 65 74 75 72 | 6e 3b 0d 0a 09 7d 0d 0a |...retur|n;...}..|
|000001a0| 0d 0a 20 20 20 20 69 66 | 20 28 20 4c 65 76 65 6c |.. if| ( Level|
|000001b0| 2e 4e 65 74 4d 6f 64 65 | 20 21 3d 20 4e 4d 5f 44 |.NetMode| != NM_D|
|000001c0| 65 64 69 63 61 74 65 64 | 53 65 72 76 65 72 20 29 |edicated|Server )|
|000001d0| 0d 0a 20 20 20 20 7b 0d | 0a 20 20 20 20 20 20 20 |.. {.|. |
|000001e0| 20 69 66 20 28 20 21 50 | 68 79 73 69 63 73 56 6f | if ( !P|hysicsVo|
|000001f0| 6c 75 6d 65 2e 62 57 61 | 74 65 72 56 6f 6c 75 6d |lume.bWa|terVolum|
|00000200| 65 20 29 0d 0a 20 20 20 | 20 20 20 20 20 7b 0d 0a |e ).. | {..|
|00000210| 20 20 20 20 20 20 20 20 | 20 20 20 20 54 72 61 69 | | Trai|
|00000220| 6c 20 3d 20 53 70 61 77 | 6e 28 63 6c 61 73 73 27 |l = Spaw|n(class'|
|00000230| 46 6c 61 6b 54 72 61 69 | 6c 27 2c 73 65 6c 66 29 |FlakTrai|l',self)|
|00000240| 3b 0d 0a 20 20 20 20 20 | 20 20 20 20 20 20 20 54 |;.. | T|
|00000250| 72 61 69 6c 2e 4c 69 66 | 65 73 70 61 6e 20 3d 20 |rail.Lif|espan = |
|00000260| 4c 69 66 65 73 70 61 6e | 3b 0d 0a 20 20 20 20 20 |Lifespan|;.. |
|00000270| 20 20 20 7d 0d 0a 20 20 | 20 20 7d 0d 0a 20 20 20 | }.. | }.. |
|00000280| 20 56 65 6c 6f 63 69 74 | 79 20 3d 20 56 65 63 74 | Velocit|y = Vect|
|00000290| 6f 72 28 52 6f 74 61 74 | 69 6f 6e 29 20 2a 20 28 |or(Rotat|ion) * (|
|000002a0| 53 70 65 65 64 29 3b 0d | 0a 20 20 20 20 53 75 70 |Speed);.|. Sup|
|000002b0| 65 72 2e 50 6f 73 74 4e | 65 74 42 65 67 69 6e 50 |er.PostN|etBeginP|
|000002c0| 6c 61 79 28 29 3b 0d 0a | 0d 0a 20 09 2f 2f 20 73 |lay();..|.. .// s|
|000002d0| 65 65 20 69 66 20 6c 6f | 63 61 6c 20 70 6c 61 79 |ee if lo|cal play|
|000002e0| 65 72 20 63 6f 6e 74 72 | 6f 6c 6c 65 72 20 6e 65 |er contr|oller ne|
|000002f0| 61 72 20 62 75 6c 6c 65 | 74 2c 20 62 75 74 20 6d |ar bulle|t, but m|
|00000300| 69 73 73 65 64 0d 0a 09 | 50 43 20 3d 20 4c 65 76 |issed...|PC = Lev|
|00000310| 65 6c 2e 47 65 74 4c 6f | 63 61 6c 50 6c 61 79 65 |el.GetLo|calPlaye|
|00000320| 72 43 6f 6e 74 72 6f 6c | 6c 65 72 28 29 3b 0d 0a |rControl|ler();..|
|00000330| 09 69 66 20 28 20 28 50 | 43 20 21 3d 20 4e 6f 6e |.if ( (P|C != Non|
|00000340| 65 29 20 26 26 20 28 50 | 43 2e 50 61 77 6e 20 21 |e) && (P|C.Pawn !|
|00000350| 3d 20 4e 6f 6e 65 29 20 | 29 0d 0a 09 7b 0d 0a 09 |= None) |)...{...|
|00000360| 09 44 69 72 20 3d 20 4e | 6f 72 6d 61 6c 28 56 65 |.Dir = N|ormal(Ve|
|00000370| 6c 6f 63 69 74 79 29 3b | 0d 0a 09 09 4c 69 6e 65 |locity);|....Line|
|00000380| 50 6f 73 20 3d 20 28 4c | 6f 63 61 74 69 6f 6e 20 |Pos = (L|ocation |
|00000390| 2b 20 28 44 69 72 20 64 | 6f 74 20 28 50 43 2e 50 |+ (Dir d|ot (PC.P|
|000003a0| 61 77 6e 2e 4c 6f 63 61 | 74 69 6f 6e 20 2d 20 4c |awn.Loca|tion - L|
|000003b0| 6f 63 61 74 69 6f 6e 29 | 29 20 2a 20 44 69 72 29 |ocation)|) * Dir)|
|000003c0| 3b 0d 0a 09 09 4c 69 6e | 65 44 69 72 20 3d 20 50 |;....Lin|eDir = P|
|000003d0| 43 2e 50 61 77 6e 2e 4c | 6f 63 61 74 69 6f 6e 20 |C.Pawn.L|ocation |
|000003e0| 2d 20 4c 69 6e 65 50 6f | 73 3b 0d 0a 09 09 69 66 |- LinePo|s;....if|
|000003f0| 20 28 20 56 53 69 7a 65 | 28 4c 69 6e 65 44 69 72 | ( VSize|(LineDir|
|00000400| 29 20 3c 20 31 35 30 20 | 29 0d 0a 09 09 7b 0d 0a |) < 150 |)....{..|
|00000410| 09 09 09 53 65 74 4c 6f | 63 61 74 69 6f 6e 28 4c |...SetLo|cation(L|
|00000420| 69 6e 65 50 6f 73 29 3b | 0d 0a 09 09 09 69 66 20 |inePos);|.....if |
|00000430| 28 20 46 52 61 6e 64 28 | 29 20 3c 20 30 2e 35 20 |( FRand(|) < 0.5 |
|00000440| 29 0d 0a 09 09 09 09 50 | 6c 61 79 53 6f 75 6e 64 |)......P|laySound|
|00000450| 28 73 6f 75 6e 64 27 49 | 6d 70 61 63 74 33 53 6e |(sound'I|mpact3Sn|
|00000460| 64 27 2c 2c 2c 2c 38 30 | 29 3b 0d 0a 09 09 09 65 |d',,,,80|);.....e|
|00000470| 6c 73 65 0d 0a 09 09 09 | 09 50 6c 61 79 53 6f 75 |lse.....|.PlaySou|
|00000480| 6e 64 28 73 6f 75 6e 64 | 27 49 6d 70 61 63 74 37 |nd(sound|'Impact7|
|00000490| 53 6e 64 27 2c 2c 2c 2c | 38 30 29 3b 0d 0a 09 09 |Snd',,,,|80);....|
|000004a0| 09 53 65 74 4c 6f 63 61 | 74 69 6f 6e 28 4c 6f 63 |.SetLoca|tion(Loc|
|000004b0| 61 74 69 6f 6e 29 3b 0d | 0a 09 09 7d 0d 0a 09 7d |ation);.|...}...}|
|000004c0| 0d 0a 7d 0d 0a 0d 0a 73 | 69 6d 75 6c 61 74 65 64 |..}....s|imulated|
|000004d0| 20 73 69 6e 67 75 6c 61 | 72 20 66 75 6e 63 74 69 | singula|r functi|
|000004e0| 6f 6e 20 54 6f 75 63 68 | 28 41 63 74 6f 72 20 4f |on Touch|(Actor O|
|000004f0| 74 68 65 72 29 0d 0a 7b | 0d 0a 7d 0d 0a 0d 0a 73 |ther)..{|..}....s|
|00000500| 69 6d 75 6c 61 74 65 64 | 20 66 75 6e 63 74 69 6f |imulated| functio|
|00000510| 6e 20 50 72 6f 63 65 73 | 73 54 6f 75 63 68 20 28 |n Proces|sTouch (|
|00000520| 41 63 74 6f 72 20 4f 74 | 68 65 72 2c 20 76 65 63 |Actor Ot|her, vec|
|00000530| 74 6f 72 20 48 69 74 4c | 6f 63 61 74 69 6f 6e 29 |tor HitL|ocation)|
|00000540| 0d 0a 7b 0d 0a 7d 0d 0a | 0d 0a 73 69 6d 75 6c 61 |..{..}..|..simula|
|00000550| 74 65 64 20 66 75 6e 63 | 74 69 6f 6e 20 4c 61 6e |ted func|tion Lan|
|00000560| 64 65 64 28 20 56 65 63 | 74 6f 72 20 48 69 74 4e |ded( Vec|tor HitN|
|00000570| 6f 72 6d 61 6c 20 29 0d | 0a 7b 0d 0a 20 20 20 20 |ormal ).|.{.. |
|00000580| 44 65 73 74 72 6f 79 28 | 29 3b 0d 0a 7d 0d 0a 0d |Destroy(|);..}...|
|00000590| 0a 73 69 6d 75 6c 61 74 | 65 64 20 66 75 6e 63 74 |.simulat|ed funct|
|000005a0| 69 6f 6e 20 48 69 74 57 | 61 6c 6c 28 20 76 65 63 |ion HitW|all( vec|
|000005b0| 74 6f 72 20 48 69 74 4e | 6f 72 6d 61 6c 2c 20 61 |tor HitN|ormal, a|
|000005c0| 63 74 6f 72 20 57 61 6c | 6c 20 29 0d 0a 7b 0d 0a |ctor Wal|l )..{..|
|000005d0| 20 20 20 20 44 65 73 74 | 72 6f 79 28 29 3b 0d 0a | Dest|roy();..|
|000005e0| 7d 0d 0a 0d 0a 00 | |}..... | |
+--------+-------------------------+-------------------------+--------+--------+